Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 7ced4c36596980c0752d3708bdf2a1589ee8c671


Parents : c3c8f99
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-01-29T14:45:19+01:00

Fixed missing attribute check

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/nomadnet/Directory.py b/nomadnet/Directory.py
index 53c8572..335db63 100644
--- a/nomadnet/Directory.py
+++ b/nomadnet/Directory.py
@@ -212,7 +212,7 @@ class Directory:
while len(self.announce_stream) > Directory.ANNOUNCE_STREAM_MAXLENGTH:
self.announce_stream.pop()
- if hasattr(self.app.ui, "main_display"):
+ if hasattr(self.app, "ui") and hasattr(self.app.ui, "main_display"):
self.app.ui.main_display.sub_displays.network_display.directory_change_callback()
def remove_announce_with_timestamp(self, timestamp):


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────